<template>
  <a-tag v-if="status" color="success">{{ props.openText || '启用' }}</a-tag>
  <a-tag v-else color="error">{{ props.closeText || '停用' }}</a-tag>
</template>

<script lang="ts" setup>
const props = defineProps<{
  status: number | boolean
  openText?: string
  closeText?: string
}>()
</script>

<style lang="less"></style>
